cmake_minimum_required(VERSION 3.16)
project(test_qt6_component C CXX)


set(QT_DIR D:/Qt/6.8.0/mingw_64/lib/cmake/Qt6)
set(Qt6_DIR D:/Qt/6.8.0/mingw_64/lib/cmake/Qt6)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS xxxx)